import 'package:flutter/material.dart';
import 'package:flutter_structure/app/theme/app_colors.dart';

class AppThemes {
   static final lightTheme = ThemeData(
    brightness: Brightness.light,
    primarySwatch: Colors.blue,
    scaffoldBackgroundColor: Colors.white,
    cardColor:const Color.fromARGB(255, 230, 230, 230),
    textTheme: const TextTheme(
      bodyLarge: TextStyle(fontSize: 18, color: Colors.black),
      bodyMedium: TextStyle(fontSize: 16, color: Colors.black),
    ),
    elevatedButtonTheme: ElevatedButtonThemeData(
      style: ElevatedButton.styleFrom(
        backgroundColor: Colors.black,
        foregroundColor: Colors.white,
        textStyle: const TextStyle(fontSize: 16),
      ),
    ),
    bottomNavigationBarTheme: const BottomNavigationBarThemeData(
      backgroundColor: Colors.white, // 设置背景颜色
      selectedItemColor: Colors.black, // 设置选中图标颜色
      unselectedItemColor: Colors.black26, // 设置未选中图标颜色
      showSelectedLabels: false, // 不显示选中的 label
      showUnselectedLabels: false, // 不显示未选中的 label
    ),
    extensions: const [
      AppColors(
        subjectPure: Color(0xFFffffff),
        subjectMix1: Color.fromARGB(255, 240, 240, 240),
        subjectMix2: Color.fromARGB(255, 225, 225, 225),
        subjectMix3: Color.fromARGB(255, 210, 210, 210),
        contrastPure: Color(0xFF000000),
        contrastMix1: Color.fromARGB(255, 15, 15, 15),
        contrastMix2:Color.fromARGB(255, 30, 30, 30),
        contrastMix3:Color.fromARGB(255, 45, 45, 45),
        textColour1: Colors.orange,
      )
    ]
  );

  static final darkTheme = ThemeData(
    brightness: Brightness.dark,
    primarySwatch: Colors.blue,
    scaffoldBackgroundColor: Colors.black,
    cardColor:const Color.fromARGB(255, 25, 25, 25),
    textTheme: const TextTheme(
      bodyLarge: TextStyle(fontSize: 18, color: Colors.white),
      bodyMedium: TextStyle(fontSize: 16, color: Colors.white),
    ),
    elevatedButtonTheme: ElevatedButtonThemeData(
      style: ElevatedButton.styleFrom(
        backgroundColor: Colors.white,
        foregroundColor: Colors.black,
        textStyle: const TextStyle(fontSize: 16),
      ),
    ),
    bottomNavigationBarTheme: const BottomNavigationBarThemeData(
      backgroundColor: Color.fromARGB(255, 12, 12, 12), // 设置背景颜色
      selectedItemColor: Colors.white, // 设置选中图标颜色
      unselectedItemColor: Color.fromARGB(255, 48, 48, 48), // 设置未选中图标颜色
      showSelectedLabels: false, // 不显示选中的 label
      showUnselectedLabels: false, // 不显示未选中的 label
    ),
    extensions: const [
      AppColors(
        subjectPure: Color.fromARGB(255, 0, 0, 0),
        subjectMix1: Color.fromARGB(255, 15, 15, 15),
        subjectMix2:  Color.fromARGB(255, 30, 30, 30),
        subjectMix3: Color.fromARGB(255, 45, 45, 45),
        contrastPure: Color(0xFFFFFFFF),
        contrastMix1: Color.fromARGB(255, 240, 240, 240),
        contrastMix2: Color.fromARGB(255, 225, 225, 225),
        contrastMix3:Color.fromARGB(255, 210, 210, 210),
        textColour1: Color.fromARGB(255, 120, 30, 130),
      )
    ],
  );
}
